package kmn.udpservice.data;

import java.io.Serializable;

public class ItemData implements Serializable
{
	private String type; //type de l'objet : chauffage, porte...
	private String id; //id de l'objet dans la BDD
	private int etat; //allumé ou éteint | ouvert ou fermé
	
	public ItemData()
	{
		type = "";
		id = "";
		etat = 0;
	}
	
	public ItemData(String type, String id, int etat)
	{
		this.type = type;
		this.id = id;
		this.etat = etat;
	}

	public String getType() 
	{
		return type;
	}

	public void setType(String type) 
	{
		this.type = type;
	}

	public String getId() 
	{
		return id;
	}

	public void setId(String id) 
	{
		this.id = id;
	}

	public int getEtat() 
	{
		return etat;
	}

	public void setEtat(int etat) 
	{
		this.etat = etat;
	}
	
}
